import java.util.Scanner;

/**
 * @author yuanbinbing
 * 输出m行n列的星形
 */
public class Task15_03 {

  public static void main(String[] args) {
    System.out.println("请输入两个整数：");
    Scanner sc = new Scanner(System.in);
    int m = sc.nextInt();
    int n = sc.nextInt();


    for (int i = 1; i <= m; i++) {
      for (int j = 1; j <= n; j++) {
        System.out.print("*");
      }
      System.out.println();
    }
  }
}
